﻿<Window x:Class="Patterns4Net.ArchitectureExplorer.Views.SettingsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Width="467" Height="603" ResizeMode="NoResize"
        Title="Settings" mc:Ignorable="d">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TabControl Grid.Column="0" Grid.Row="0">
            <TabItem Header="Reverse engineering">
                <StackPanel Margin="10, 0, 10, 0">                
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="16"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Grid.Row="0" FontSize="13" Margin="0, 0, 0, 3 ">Exclude following namespaces: </TextBlock>
                        <Image HorizontalAlignment="Right" Source="..\Image\HelpIcon.png" Width="24" Height="24" 
                               ToolTip="Namespaces that start with a string from this list will be excluded from the diagram."/>
                    </Grid>
                    <ContentControl x:Name="Namespaces"/>  
                    <Separator/>

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="16"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Grid.Row="0" FontSize="13" Margin="0, 0, 0, 3 ">Exclude following types:</TextBlock>
                        <Image HorizontalAlignment="Right" Source="..\Image\HelpIcon.png" Width="24" Height="24" 
                               ToolTip="Types whose name matches any of these regular expressions will be excluded from the diagram."/>
                    </Grid>
                    <ContentControl x:Name="Types"/>
                    <Separator/>

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="16"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Grid.Row="0" FontSize="13" Margin="0, 0, 0, 3 ">Exclude following members:</TextBlock>
                        <Image HorizontalAlignment="Right" Source="..\Image\HelpIcon.png" Width="24" Height="24" 
                               ToolTip="Properties and methods whose name matches any of these regular expressions will be excluded from the diagram."/>
                    </Grid>                    
                    <ContentControl x:Name="Members"/>
                </StackPanel>
            </TabItem>
            <TabItem Header="Graphviz">
                <StackPanel Margin="10, 0, 10, 0">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="16"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Grid.Row="0" FontSize="13" Margin="0, 0, 0, 3 ">Additional attributes for graph:</TextBlock>
                        <Image HorizontalAlignment="Right" Source="..\Image\HelpIcon.png" Width="24" Height="24" 
                               ToolTip="Additional graph attributes that will be added to the input for Graphviz. For list of all supported attributes, please, refer to Graphviz manual, which is freely available online at Graphviz homepage."/>
                    </Grid>
                    <ContentControl x:Name="GraphAttributes"/>
                </StackPanel>
            </TabItem>
        </TabControl>
        <StackPanel Grid.Column="0" Grid.Row="1" Margin="0, 20, 0, 15" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Margin="0, 0, 35, 0" Width="70" x:Name="SaveSettings">OK</Button>
            <Button Width="70" x:Name="Cancel">Cancel</Button>
        </StackPanel>
    </Grid>
</Window>
